package com.kgc.smbms.mapper;


import com.kgc.smbms.entity.Bill;

import java.util.List;
import java.util.Map;

public interface BillMapper {
    /**
     * 根据条件查询商品账单
     * @return
     */
    List<Bill> selectBycondition(Map<String, Object> map);

    /**
     * 根据供应商id的list集合查找对应的商品账单
     * @param providerIdList
     * @return
     */
    List<Bill> selectByProviderIdList(List<Integer> providerIdList);

    Bill selectBillById(int id);

    int checkCode(String billCode);

    int addBill(Bill bill);

    int update(Bill bill);

    int delete(int id);

    int checkCountByProviderId(int providerId);
}
